package cn.edu.gzist.chapter02.domain;

import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "consumer")
public class Consumer {
    private String username;
    private int age;
    private String[] hobby;
    private Map<Integer,String> order;

    // getter & setter
    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Map<Integer, String> getOrder() {
        return order;
    }

    public void setOrder(Map<Integer, String> order) {
        this.order = order;
    }

    
    
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
